<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,height=device-height, user-scalable=no,initial-scale=1, minimum-scale=1, maximum-scale=1,target-densitydpi=device-dpi">
	<title>限时抢购</title>
	<link rel="stylesheet" href="css/index.css">
	<link rel="stylesheet" href="css/shoping.css">
	<link rel="stylesheet" href="css/flashScale.css">
	<script src="js/jquery.min.js"></script>
	<script src="js/jishuqi.js"></script>
	<style>
		.flashScale .flashScale_line1 .jishuqi{
			display: none;
			float: right;
			margin-right: 10px;
		}
		.flashScale .flashScale_line1 .jishuqi button{
			width: 24px;
			height: 19px;
			background: #f2f2f2;
			border: 1px solid #ccc;
			line-height: 19px;
			color: #aaa;
		}
		.flashScale .flashScale_line1 .jishuqi input{
		    width: 35px;
		    text-align: center;
		    color: #fe7676;
		    border: none;	
		}
		.flashScale .flashScale_line1 button.active{
			display: block;
		}
	</style>
</head>
<body>
	<!-- 头部可复用样式 -->
	<header>
		<img src="images/guanbi.png" alt="关闭">
		<p>水站商城</p>
		<img src="images/gengduo.png" alt="更多">
	</header>
	<!-- 限时抢购title -->
	<div class="title">
		<a href="javascript:history.back(-1);">
			<img src="images/1-2返回.png" alt="">
		</a>
		<span>限时抢购</span>
	</div>
	<!-- 限时抢购产品 -->
	<div class="flashScale">
		<div class="flashScale_line1" onclick="javascript:window.location.href='detail.html'">
			<img src="images/1-1图图1.png" alt="">
			<h4>农夫山泉系列10L</h4>
			<p>距离结束</p>
			<p>秒杀价:<span>￥5.00</span>元/桶</p>
			<p>01:32:52</p>
			<p>已售: 0/5</p>
			<p>限时:2017-07-10&nbsp;&nbsp;&nbsp;&nbsp;00:00:00至01:00:00</p>
			<button class="active">抢</button>
			<div class="jishuqi">
				<button>-</button>
				<input type="number" value="2">
				<button>+</button>
			</div>
		</div>
		<div class="flashScale_line1" onclick="javascript:window.location.href='detail.html'">
			<img src="images/1-1图图2.png" alt="">
			<h4>哇哈哈系列10L</h4>
			<p>未开始</p>
			<p>秒杀价:<span>￥2.00</span>元/桶</p>
			<p class="nostart">01:32:52</p>
			<p>已售: 3/5</p>
			<p>限时:2017-07-10&nbsp;&nbsp;&nbsp;&nbsp;00:00:00至01:00:00</p>
			<button>抢</button>
		</div>
		<div class="flashScale_line1" onclick="javascript:window.location.href='detail.html'">
			<img src="images/1-1图图1.png" alt="">
			<h4>农夫山泉系列10L</h4>
			<p>活动结束</p>
			<p>秒杀价:<span>￥6.00</span>元/桶</p>
			<p class="nostart">01:32:52</p>
			<p>已售: 5/5</p>
			<p>限时:2017-07-10&nbsp;&nbsp;&nbsp;&nbsp;00:00:00至01:00:00</p>
			<button>抢</button>
		</div>
		<div class="flashScale_line1" onclick="javascript:window.location.href='detail.html'">
			<img src="images/1-1图图2.png" alt="">
			<h4>哇哈哈系列10L</h4>
			<p>距离结束</p>
			<p>秒杀价:<span>￥5.00</span>元/桶</p>
			<p>01:32:52</p>
			<p>已售: 0/5</p>
			<p>限时:2017-07-10&nbsp;&nbsp;&nbsp;&nbsp;00:00:00至01:00:00</p>
			<button class="active">抢</button>
			<div class="jishuqi">
				<button>-</button>
				<input type="number" value="2">
				<button>+</button>
			</div>
		</div>
	</div>
	<!-- 底部 -->
	<div class="bottom">
		<div class="img_group" onclick="javascript:window.location.href='index.html'">
			<img src="images/主页灰.png" alt="主页图标">
			<p>主页</p>
		</div>
		<div class="img_group">
			<img src="images/客服电话灰.png" alt="客服电话">
			<p>客服电话</p>
		</div>
		<div class="img_group" >
			<img src="images/分类.png" alt="分类">
			<p>分类</p>
		</div>
		<div class="img_group" onclick="javascript:window.location.href='shopping(empty).html'">
			<img src="images/购物车灰.png" alt="购物车">
			<span>2</span>
			<p>购物车</p>
		</div>
		<div class="img_group" onclick="javascript:window.location.href='person.html'">
			<img src="images/个人中心灰.png" alt="个人中心">
			<p>个人中心</p>
		</div>
	</div>
	<script>
		$(function(){
			$('.flashScale .flashScale_line1 button.active').click(function(event) {
				event.stopPropagation();
				$(this).hide().next('.jishuqi').show();
			});
			$('.jishuqi').jishuqi();
			$('.jishuqi').click(function(event) {
				event.stopPropagation();
				if(event){
					event.cancelBubble = true;
				}
			});
		})
	</script>
</body>
</html>